package to.ax.games.chess.rules;

/**
 * @author Tom Ritchford (tom@swirly.com)
 *
 */
public class QueenRules extends PieceRules {
  @Override
  public int[][] getMoveOffsets() { return MOVES; }  
  public static final int[][] MOVES = {
    {-7, -7},                                                             {0, -7},                                                      {7, -7}, 
              {-6, -6},                                                   {0, -6},                                             {6, -6},
                        {-5, -5},                                         {0, -5},                                     {5, -5},
                                  {-4, -4},                               {0, -4},                            {4, -4},
                                           {-3,  -3},                     {0, -3},                   {3, -3},
                                                      {-2,  -2},          {0, -2},          {2, -2},
                                                                {-1, -1}, {0, -1}, {1, -1},
    {-7,  0}, {-6,  0}, {-5,  0}, {-4,  0}, {-3,  0}, {-2,  0}, {-1,  0},          {1,  0}, {2,  0}, {3,  0}, {4,  0}, {5,  0}, {6,  0}, {7,  0},
                                                                {-1,  1}, {0,  1}, {1,  1},
                                                      {-2,  2},           {0,  2},          {2,  2},
                                            {-3,  3},                     {0,  3},                   {3,  3},
                                  {-4,  4},                               {0,  4},                            {4,  4},
                        {-5,  5},                                         {0,  5},                                     {5,  5},
              {-6,  6},                                                   {0,  6},                                             {6,  6},
    {-7,  7},                                                             {0,  7},                                                      {7,  7}, 
  };
}
